package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.StGoodsImg;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StGoodsImgMapper extends FsMapper<StGoodsImg> {

    /**
     * 根据商品ID查询配置的图片
     * @param goodsId
     * @return
     */
    List<StGoodsImg> queryGoodsImgs(@Param("goodsId") Integer goodsId);

    /**
     * 根据商品ID删除对应的图片
     * @param goodsId
     */
    void deleteByGoodsId(@Param("goodsId") Integer goodsId);
}